/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kyakya;

import sun.net.www.content.audio.x_aiff;

/**
 *
 * @author hartono
 */
public class Post {
    
    private int authorID;
    private int id;
    private String title;
    private String tags;
    private String desc;
    private String content;
    private String createTime;
    private String updateTime;
    private int likeCount;
    private int dislikeCount;
    private int commentCount;

    public Post() {
    }
    
    

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public int getDislikeCount() {
        return dislikeCount;
    }

    public void setDislikeCount(int dislikeCount) {
        this.dislikeCount = dislikeCount;
    }

    public int getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(int likeCount) {
        this.likeCount = likeCount;
    }
    

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Post(int authorID, int id, String title, String tags, String desc, String content) {
        this.authorID = authorID;
        this.id = id;
        this.title = title;
        this.tags = tags;
        this.desc = desc;
        this.content = content;
    }
    
    
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getAuthorID() {
        return authorID;
    }

    public void setAuthorID(int authorID) {
        this.authorID = authorID;
    }

    @Override
    public String toString() {
        return id + " " + title + " " + content + " " + tags + " " + createTime ;
    }
    
    
    
}
